/* 这是引入了一些字体 */
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  /* 当用户手动导航或者 CSSOM scrolling API 触发滚动操作时 */
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #1c0522;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
}

header .logo {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 2em;
  text-transform: uppercase;
  /* 大写 */
  letter-spacing: 2px;
  /* 字符间距 */
}

header ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

header ul li {
  list-style: none;
  margin-left: 20px;
}

header ul li a {
  text-decoration: none;
  font-weight: 600;
  padding: 6px 15px;
  color: #fff;
  border-radius: 20px;
}

header ul li a:hover,
header ul li a.active {
  background: #fff;
  color: #2b1055;
}

section {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #1c0522, transparent);
  z-index: 1000;
}

section img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

section img#moon {
  mix-blend-mode: screen;
}

section img#mountains_front {
  z-index: 10;
}

#text {
  position: absolute;
  right: -350px;
  color: #fff;
  white-space: nowrap;
  font-size: 7.5vw;
  z-index: 9;
}

#btn {
  text-decoration: none;
  display: inline-block;
  padding: 8px 30px;
  border-radius: 40px;
  background: #fff;
  color: #2b1055;
  font-size: 1.5em;
  z-index: 9;
  transform: translateY(100px);
}

.sec {
  position: relative;
  padding: 100px;
  background: #1c0522;
}

.sec h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #fff;
}

.sec h4 {
  font-size: 1.5em;
  margin-bottom: 10px;
  margin: 10px;
  color: #fff;
}

.sec p {
  font-size: 1em;
  font-weight: 600;
  color: #fff;
}

.shell {
  width: 75%;
  height: 600px;
  position: relative;
  overflow-x: hidden;
  border-radius: 5px;
  border: 10px #2b1055 solid;
  margin-left: 185px;
}

.on {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #fff;
}

.images {
  width: 300%;
  height: 100%;
  display: flex;
  position: absolute;
  left: 0;
  transition: .2s;
}

.img {
  width: 100%;
  background-size: cover;
}

.img:nth-child(1) {
  background-image: url("./images/精灵旅社1.jpg");
}

.img:nth-child(2) {
  background-image: url("./images/精灵旅社2.jpg");
}

.img:nth-child(3) {
  background-image: url("./images/精灵旅社3.jpg");
}


.min-images {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  position: absolute;
  bottom: 20px;
  width: 40%;
  z-index: 999;
  right: 10%;
}

.min {
  width: 60px;
  height: 60px;
  /* 鼠标悬浮时显示按钮指针 */
  cursor: pointer;
  border-radius: 50%;
  background-size: cover;
  border: solid 5px rgba(255, 255, 255, 0.5);
  /* 照片偏移量 */
  background-position: -20px 0;
}

.min:nth-child(1) {
  background-image: url("./images/精灵旅社1.jpg");
}

.min:nth-child(2) {
  background-image: url("./images/精灵旅社2.jpg");
}

.min:nth-child(3) {
  background-image: url("./images/精灵旅社3.jpg");
}

.button {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  justify-content: space-between;
  user-select: none;
}

.button-left,
.button-right {
  font-size: 50px;
  background-color: rgba(160, 190, 255, 0.7);
  padding: 0 20px;
  line-height: 500px;
  cursor: pointer;
}

.footer {
  width: 100%;
  height: 150px;
}